AmigaSoc UK

Shell Configuration Files

These are example configuration files for the majority of Unix shells.

Korn Shell (ksh) , Borne Shell (sh) and Bash users should create a file called .profile in their home directory as follows.

#configuration file for bash (and ksh)

#set the terminal type
tset vt220

#set the path
PATH=.:/bin:/usr/bin:/usr/local/X11R6.1/bin:/usr/local/bin
export PATH

#set other environment variables
TAPE=/dev/nrst0
export TAPE
ORACLE_HOME=/oracle
export ORACLE_HOME

#define some aliases

alias df '/bin/df -k '
alias local 'cd /local'
alias windows 'startx'
alias copy 'cp'
alias dir 'ls'
alias move 'mv'
alias delete 'rm'

Z-Shell (zsh) users should use the following .zshrc file
#configuration file for Z-Shell 

#set the terminal type
tset vt220

#set the path
PATH=.:/bin:/usr/bin:/usr/local/X11R6.1/bin:/usr/local/bin
export PATH

#set other environment variables
TAPE=/dev/nrst0
export TAPE
ORACLE_HOME=/oracle
export ORACLE_HOME

#define some aliases

alias df '/bin/df -k '
alias local 'cd /local'
alias windows 'startx'
alias copy 'cp'
alias dir 'ls'
alias move 'mv'
alias delete 'rm'

#set the prompt
HOST=`/bin/hostname`
export HOST
THISUSER=`/usr/bin/whoami`
export THISUSER
PROMPT="$HOST>$THISUSER>"
export PROMPT 


Finally c-shell (csh) users should have the following 3 files in their home directory.

.cshrc
# Simple C-Shell configuration script

#set the search path

set path = ($path . bin /usr/bin /usr/local/bin /usr/local/X11R6.1/bin /$home)

#define some aliases

alias df '/bin/df -k '
alias local 'cd /local'
alias windows 'startx'
alias copy 'cp'
alias dir 'ls'
alias move 'mv'
alias delete 'rm'
set history=25
alias h history


#change the shell prompt
set host = `/bin/hostname`
set thisuser = `/usr/bin/whoami`
set prompt = "$host>$thisuser>\!>"

.login
#example login file for c-shell

#set terminal type

tset vt220

#define some environment variables
#the tape environment variable is used by tar
setenv TAPE /dev/nrst0
#On systems with oracle (database) Oracle_Home should be set
setenv ORACLE_HOME /oracle

.logout
# c-shell logout file

echo "Good Bye"